package com.generalbackend.common.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
* ClassName: CommonConfig
* @Description 公共配置表实体类
* @author tim.xie
* @date 2021-11-18 13:31
*/

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_common_config")
public class CommonConfig  {
	/**
	 * 
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;
	/**
	 * 前缀
	 */
    @TableField("prefix")
    private String prefix;
	/**
	 * key
	 */
    @TableField("config_key")
    private String configKey;
	/**
	 * 值
	 */
    @TableField("config_value")
    private String configValue;
	/**
	 * 默认值
	 */
    @TableField("default_value")
    private String defaultValue;
	/**
	 * 描述
	 */
    @TableField("description")
    private String description;
	/**
	 * 创建时间
	 */
    @TableField("create_time")
    private Date createTime;
	/**
	 * 更新时间
	 */
    @TableField("gmt_modified")
    private Date gmtModified;


}